import Cookies from 'js-cookie'

const tokenKey = 'jwtToken';
const cardKey = 'card';

export function getToken() {
  return Cookies.get(tokenKey);
}

export function setToken(token) {
  return Cookies.set(tokenKey, token);
}

export function removeToken() {
  return Cookies.remove(tokenKey);
}

export function getCard() {
  return Cookies.get(cardKey);
}

export function setCard(cardCredential) {
  return Cookies.set(cardKey, cardCredential);
}

export function removeCard() {
  return Cookies.remove(cardKey);
}
